import java.util.List;


public class MessageEvent {

    /** 事件类型 */

    private String event;

    /** 任务ID */

    private String task_id;

    /** 消息ID */

    private String id;

    /** 消息ID（可能与'id'相同或不同用途） */

    private String message_id;

    /** 对话ID */

    private String conversation_id;

    /** 模式，如高级聊天模式 */

    private String mode;

    /** 回答内容 */
    private String answer;


    private Metadata metadata;


    private Long created_at;

    public String getEvent() {
        return event;
    }

    public void setEvent(String event) {
        this.event = event;
    }

    public String getTask_id() {
        return task_id;
    }

    public void setTask_id(String task_id) {
        this.task_id = task_id;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getMessage_id() {
        return message_id;
    }

    public void setMessage_id(String message_id) {
        this.message_id = message_id;
    }

    public String getConversation_id() {
        return conversation_id;
    }

    public void setConversation_id(String conversation_id) {
        this.conversation_id = conversation_id;
    }

    public String getMode() {
        return mode;
    }

    public void setMode(String mode) {
        this.mode = mode;
    }

    public String getAnswer() {
        return answer;
    }

    public void setAnswer(String answer) {
        this.answer = answer;
    }

    public Metadata getMetadata() {
        return metadata;
    }

    public void setMetadata(Metadata metadata) {
        this.metadata = metadata;
    }

    public Long getCreated_at() {
        return created_at;
    }

    public void setCreated_at(Long created_at) {
        this.created_at = created_at;
    }

    public static class Metadata {
        /** 检索资源列表 */
        private List<Object> retriever_resources;


        private Usage usage;

        public List<Object> getRetriever_resources() {
            return retriever_resources;
        }

        public void setRetriever_resources(List<Object> retriever_resources) {
            this.retriever_resources = retriever_resources;
        }

        public Usage getUsage() {
            return usage;
        }

        public void setUsage(Usage usage) {
            this.usage = usage;
        }

        public static class Usage {
            /** 提示词标记数量 */
            private Integer prompt_tokens;

            /** 提示词单价 */
            private String prompt_unit_price;

            /** 提示词价格单位 */
            private String prompt_price_unit;

            /** 提示词总价 */

            private String prompt_price;

            /** 完成响应标记数量 */

            private Integer completion_tokens;

            /** 完成响应单价 */

            private String completion_unit_price;

            /** 完成响应价格单位 */

            private String completion_price_unit;

            /** 完成响应总价 */

            private String completion_price;

            /** 总标记数量 */

            private Integer total_tokens;

            /** 总价 */

            private String total_price;

            /** 货币单位 */

            private String currency;

            /** 延迟时间 */

            private Double latency;

            public Integer getPrompt_tokens() {
                return prompt_tokens;
            }

            public void setPrompt_tokens(Integer prompt_tokens) {
                this.prompt_tokens = prompt_tokens;
            }

            public String getPrompt_unit_price() {
                return prompt_unit_price;
            }

            public void setPrompt_unit_price(String prompt_unit_price) {
                this.prompt_unit_price = prompt_unit_price;
            }

            public String getPrompt_price_unit() {
                return prompt_price_unit;
            }

            public void setPrompt_price_unit(String prompt_price_unit) {
                this.prompt_price_unit = prompt_price_unit;
            }

            public String getPrompt_price() {
                return prompt_price;
            }

            public void setPrompt_price(String prompt_price) {
                this.prompt_price = prompt_price;
            }

            public Integer getCompletion_tokens() {
                return completion_tokens;
            }

            public void setCompletion_tokens(Integer completion_tokens) {
                this.completion_tokens = completion_tokens;
            }

            public String getCompletion_unit_price() {
                return completion_unit_price;
            }

            public void setCompletion_unit_price(String completion_unit_price) {
                this.completion_unit_price = completion_unit_price;
            }

            public String getCompletion_price_unit() {
                return completion_price_unit;
            }

            public void setCompletion_price_unit(String completion_price_unit) {
                this.completion_price_unit = completion_price_unit;
            }

            public String getCompletion_price() {
                return completion_price;
            }

            public void setCompletion_price(String completion_price) {
                this.completion_price = completion_price;
            }

            public Integer getTotal_tokens() {
                return total_tokens;
            }

            public void setTotal_tokens(Integer total_tokens) {
                this.total_tokens = total_tokens;
            }

            public String getTotal_price() {
                return total_price;
            }

            public void setTotal_price(String total_price) {
                this.total_price = total_price;
            }

            public String getCurrency() {
                return currency;
            }

            public void setCurrency(String currency) {
                this.currency = currency;
            }

            public Double getLatency() {
                return latency;
            }

            public void setLatency(Double latency) {
                this.latency = latency;
            }
        }
    }
}